package com.worklog.model;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
@NoArgsConstructor
@Table(name = "user")
public class User implements Serializable{
    private static final long serialVersionUID = -8736616045315083846L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column(name = "username")
    private String username;

    @Column(name = "password")
    private String password;

    @Column(name = "enable")
    private Integer enable;

    @Column(name = "status")
    private String status;

    @Column(name = "create_time")
    private Timestamp createTime;
    
    @Column(name = "last_time")
    private Timestamp lastTime;
    
    @Column(name = "update_time")
    private Timestamp updateTime;
    
    @Column(name = "login_count")
    private Integer loginCount;
    
    @Column(name = "login_ip")
    private String loginIp;
    
	@Transient
    private String roleid;

}